<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org">
<head>
    <th:block th:include="include :: header('新增商品基本信息')"/>
</head>
<body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
    <form class="form-horizontal m" id="form-goods-add">
        <div class="form-group">
            <label class="col-sm-3 control-label is-required">商品编号 ：</label>
            <div class="col-sm-8">
                <input name="goodsSn" class="form-control" type="text" required>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label is-required">商品名称 ：</label>
            <div class="col-sm-8">
                <input name="name" class="form-control" type="text" required>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">所属类目ID ：</label>
            <div class="col-sm-8">
                <input name="categoryId" class="form-control" type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">品牌id ：</label>
            <div class="col-sm-8">
                <input name="brandId" class="form-control" type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">宣传图片 ：</label>
            <div class="col-sm-8">
                <textarea name="gallery" class="form-control"></textarea>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">商品简介 ：</label>
            <div class="col-sm-8">
                <input name="brief" class="form-control" type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">是否上架 ：</label>
            <div class="col-sm-8">
                <input name="isOnSale" class="form-control" type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">排序 ：</label>
            <div class="col-sm-8">
                <input name="sortOrder" class="form-control" type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">商品图片 ：</label>
            <div class="col-sm-8">
                <input name="picUrl" class="form-control" type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">是否新品首发 ：</label>
            <div class="col-sm-8">
                <input name="isNew" class="form-control" type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">是否人气推荐 ：</label>
            <div class="col-sm-8">
                <input name="isHot" class="form-control" type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">单位 ：</label>
            <div class="col-sm-8">
                <input name="unit" class="form-control" type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">零售价格 ：</label>
            <div class="col-sm-8">
                <input name="retailPrice" class="form-control" type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">详细介绍 ：</label>
            <div class="col-sm-8">
                <textarea name="detail" class="form-control"></textarea>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">状态 ：</label>
            <div class="col-sm-8">
                <input name="deleted" class="form-control" type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">供货单位 ：</label>
            <div class="col-sm-8">
                <input name="commpany" class="form-control" type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">批发价格 ：</label>
            <div class="col-sm-8">
                <input name="wholesalePrice" class="form-control" type="text">
            </div>
        </div>
    </form>
</div>
<th:block th:include="include :: footer"/>
<script th:inline="javascript">
        var prefix = ctx + "mini/goods"
        $("#form-goods-add").validate({
            focusCleanup: true
        });

        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(prefix + "/add", $('#form-goods-add').serialize());
            }
        }


</script>
</body>
</html>